<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<title>OpenCV: DirectX interoperability</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon" />
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../tutorial-utils.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
   &#160;<span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">DirectX interoperability<div class="ingroups"><a class="el" href="../../d0/de1/group__core.html">Core functionality</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga46cdc3c6cc25fdef7321a923b040f046"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/dc1/group__core__directx.html#ga46cdc3c6cc25fdef7321a923b040f046">cv::directx::convertFromD3D10Texture2D</a> (ID3D10Texture2D *pD3D10Texture2D, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst)</td></tr>
<tr class="memdesc:ga46cdc3c6cc25fdef7321a923b040f046"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts ID3D10Texture2D to OutputArray.  <a href="../../de/dc1/group__core__directx.html#ga46cdc3c6cc25fdef7321a923b040f046">More...</a><br /></td></tr>
<tr class="separator:ga46cdc3c6cc25fdef7321a923b040f046"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaaea63f9b492b4a84e1e9ef6d4eba377c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/dc1/group__core__directx.html#gaaea63f9b492b4a84e1e9ef6d4eba377c">cv::directx::convertFromD3D11Texture2D</a> (ID3D11Texture2D *pD3D11Texture2D, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst)</td></tr>
<tr class="memdesc:gaaea63f9b492b4a84e1e9ef6d4eba377c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts ID3D11Texture2D to OutputArray. If input texture format is DXGI_FORMAT_NV12 then data will be upsampled and color-converted to BGR format.  <a href="../../de/dc1/group__core__directx.html#gaaea63f9b492b4a84e1e9ef6d4eba377c">More...</a><br /></td></tr>
<tr class="separator:gaaea63f9b492b4a84e1e9ef6d4eba377c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga657f9cc740fe38fb0eb16df075224c2d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/dc1/group__core__directx.html#ga657f9cc740fe38fb0eb16df075224c2d">cv::directx::convertFromDirect3DSurface9</a> (IDirect3DSurface9 *pDirect3DSurface9, <a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a> dst, void *surfaceSharedHandle=NULL)</td></tr>
<tr class="memdesc:ga657f9cc740fe38fb0eb16df075224c2d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts IDirect3DSurface9 to OutputArray.  <a href="../../de/dc1/group__core__directx.html#ga657f9cc740fe38fb0eb16df075224c2d">More...</a><br /></td></tr>
<tr class="separator:ga657f9cc740fe38fb0eb16df075224c2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga96bb00cac7698f2fdb7001057f9e4352"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/dc1/group__core__directx.html#ga96bb00cac7698f2fdb7001057f9e4352">cv::directx::convertToD3D10Texture2D</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, ID3D10Texture2D *pD3D10Texture2D)</td></tr>
<tr class="memdesc:ga96bb00cac7698f2fdb7001057f9e4352"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts InputArray to ID3D10Texture2D.  <a href="../../de/dc1/group__core__directx.html#ga96bb00cac7698f2fdb7001057f9e4352">More...</a><br /></td></tr>
<tr class="separator:ga96bb00cac7698f2fdb7001057f9e4352"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga92b6817beb98d9cdd71280420e3da8e3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/dc1/group__core__directx.html#ga92b6817beb98d9cdd71280420e3da8e3">cv::directx::convertToD3D11Texture2D</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, ID3D11Texture2D *pD3D11Texture2D)</td></tr>
<tr class="memdesc:ga92b6817beb98d9cdd71280420e3da8e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts InputArray to ID3D11Texture2D. If destination texture format is DXGI_FORMAT_NV12 then input <a class="el" href="../../d7/d45/classcv_1_1UMat.html">UMat</a> expected to be in BGR format and data will be downsampled and color-converted to NV12.  <a href="../../de/dc1/group__core__directx.html#ga92b6817beb98d9cdd71280420e3da8e3">More...</a><br /></td></tr>
<tr class="separator:ga92b6817beb98d9cdd71280420e3da8e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga45c2557af043bc17b9491503fc669a2d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/dc1/group__core__directx.html#ga45c2557af043bc17b9491503fc669a2d">cv::directx::convertToDirect3DSurface9</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src, IDirect3DSurface9 *pDirect3DSurface9, void *surfaceSharedHandle=NULL)</td></tr>
<tr class="memdesc:ga45c2557af043bc17b9491503fc669a2d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts InputArray to IDirect3DSurface9.  <a href="../../de/dc1/group__core__directx.html#ga45c2557af043bc17b9491503fc669a2d">More...</a><br /></td></tr>
<tr class="separator:ga45c2557af043bc17b9491503fc669a2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga17031976572a0096cd4e2519fbe30c74"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/dc1/group__core__directx.html#ga17031976572a0096cd4e2519fbe30c74">cv::directx::getTypeFromD3DFORMAT</a> (const int iD3DFORMAT)</td></tr>
<tr class="memdesc:ga17031976572a0096cd4e2519fbe30c74"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get OpenCV type from DirectX type.  <a href="../../de/dc1/group__core__directx.html#ga17031976572a0096cd4e2519fbe30c74">More...</a><br /></td></tr>
<tr class="separator:ga17031976572a0096cd4e2519fbe30c74"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad5909ae5d47945e931b093bd2b6e12e9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/dc1/group__core__directx.html#gad5909ae5d47945e931b093bd2b6e12e9">cv::directx::getTypeFromDXGI_FORMAT</a> (const int iDXGI_FORMAT)</td></tr>
<tr class="memdesc:gad5909ae5d47945e931b093bd2b6e12e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get OpenCV type from DirectX type.  <a href="../../de/dc1/group__core__directx.html#gad5909ae5d47945e931b093bd2b6e12e9">More...</a><br /></td></tr>
<tr class="separator:gad5909ae5d47945e931b093bd2b6e12e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7ec329adfc06ad752009722f6942f98a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/dc1/group__core__directx.html#ga7ec329adfc06ad752009722f6942f98a">cv::directx::ocl::initializeContextFromD3D10Device</a> (ID3D10Device *pD3D10Device)</td></tr>
<tr class="memdesc:ga7ec329adfc06ad752009722f6942f98a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates OpenCL context from D3D10 device.  <a href="../../de/dc1/group__core__directx.html#ga7ec329adfc06ad752009722f6942f98a">More...</a><br /></td></tr>
<tr class="separator:ga7ec329adfc06ad752009722f6942f98a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac1d923df82d681aca666ad85835945d1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/dc1/group__core__directx.html#gac1d923df82d681aca666ad85835945d1">cv::directx::ocl::initializeContextFromD3D11Device</a> (ID3D11Device *pD3D11Device)</td></tr>
<tr class="memdesc:gac1d923df82d681aca666ad85835945d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates OpenCL context from D3D11 device.  <a href="../../de/dc1/group__core__directx.html#gac1d923df82d681aca666ad85835945d1">More...</a><br /></td></tr>
<tr class="separator:gac1d923df82d681aca666ad85835945d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga763e240e3ae405e0140198941bd0dcee"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/dc1/group__core__directx.html#ga763e240e3ae405e0140198941bd0dcee">cv::directx::ocl::initializeContextFromDirect3DDevice9</a> (IDirect3DDevice9 *pDirect3DDevice9)</td></tr>
<tr class="memdesc:ga763e240e3ae405e0140198941bd0dcee"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates OpenCL context from Direct3DDevice9 device.  <a href="../../de/dc1/group__core__directx.html#ga763e240e3ae405e0140198941bd0dcee">More...</a><br /></td></tr>
<tr class="separator:ga763e240e3ae405e0140198941bd0dcee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf945f3411355162d7de85f842c752add"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/dc1/group__core__directx.html#gaf945f3411355162d7de85f842c752add">cv::directx::ocl::initializeContextFromDirect3DDevice9Ex</a> (IDirect3DDevice9Ex *pDirect3DDevice9Ex)</td></tr>
<tr class="memdesc:gaf945f3411355162d7de85f842c752add"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates OpenCL context from Direct3DDevice9Ex device.  <a href="../../de/dc1/group__core__directx.html#gaf945f3411355162d7de85f842c752add">More...</a><br /></td></tr>
<tr class="separator:gaf945f3411355162d7de85f842c752add"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga46cdc3c6cc25fdef7321a923b040f046"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga46cdc3c6cc25fdef7321a923b040f046">&#9670;&nbsp;</a></span>convertFromD3D10Texture2D()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::directx::convertFromD3D10Texture2D </td>
          <td>(</td>
          <td class="paramtype">ID3D10Texture2D *&#160;</td>
          <td class="paramname"><em>pD3D10Texture2D</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a>&#160;</td>
          <td class="paramname"><em>dst</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="../../df/d8b/directx_8hpp.html">opencv2/core/directx.hpp</a>&gt;</code></p>

<p>Converts ID3D10Texture2D to OutputArray. </p>
<dl class="section note"><dt>Note</dt><dd>Note: function does memory copy from pD3D10Texture2D to dst </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pD3D10Texture2D</td><td>- source D3D10 texture </td></tr>
    <tr><td class="paramname">dst</td><td>- destination OutputArray </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gaaea63f9b492b4a84e1e9ef6d4eba377c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaaea63f9b492b4a84e1e9ef6d4eba377c">&#9670;&nbsp;</a></span>convertFromD3D11Texture2D()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::directx::convertFromD3D11Texture2D </td>
          <td>(</td>
          <td class="paramtype">ID3D11Texture2D *&#160;</td>
          <td class="paramname"><em>pD3D11Texture2D</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a>&#160;</td>
          <td class="paramname"><em>dst</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="../../df/d8b/directx_8hpp.html">opencv2/core/directx.hpp</a>&gt;</code></p>

<p>Converts ID3D11Texture2D to OutputArray. If input texture format is DXGI_FORMAT_NV12 then data will be upsampled and color-converted to BGR format. </p>
<dl class="section note"><dt>Note</dt><dd>Note: Destination matrix will be re-allocated if it has not enough memory to match texture size. function does memory copy from pD3D11Texture2D to dst </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pD3D11Texture2D</td><td>- source D3D11 texture </td></tr>
    <tr><td class="paramname">dst</td><td>- destination OutputArray </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga657f9cc740fe38fb0eb16df075224c2d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga657f9cc740fe38fb0eb16df075224c2d">&#9670;&nbsp;</a></span>convertFromDirect3DSurface9()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::directx::convertFromDirect3DSurface9 </td>
          <td>(</td>
          <td class="paramtype">IDirect3DSurface9 *&#160;</td>
          <td class="paramname"><em>pDirect3DSurface9</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#gaad17fda1d0f0d1ee069aebb1df2913c0">OutputArray</a>&#160;</td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>surfaceSharedHandle</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="../../df/d8b/directx_8hpp.html">opencv2/core/directx.hpp</a>&gt;</code></p>

<p>Converts IDirect3DSurface9 to OutputArray. </p>
<dl class="section note"><dt>Note</dt><dd>Note: function does memory copy from pDirect3DSurface9 to dst </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pDirect3DSurface9</td><td>- source D3D10 texture </td></tr>
    <tr><td class="paramname">dst</td><td>- destination OutputArray </td></tr>
    <tr><td class="paramname">surfaceSharedHandle</td><td>- shared handle </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga96bb00cac7698f2fdb7001057f9e4352"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga96bb00cac7698f2fdb7001057f9e4352">&#9670;&nbsp;</a></span>convertToD3D10Texture2D()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::directx::convertToD3D10Texture2D </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ID3D10Texture2D *&#160;</td>
          <td class="paramname"><em>pD3D10Texture2D</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="../../df/d8b/directx_8hpp.html">opencv2/core/directx.hpp</a>&gt;</code></p>

<p>Converts InputArray to ID3D10Texture2D. </p>
<dl class="section note"><dt>Note</dt><dd>Note: function does memory copy from src to pD3D10Texture2D </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>- source InputArray </td></tr>
    <tr><td class="paramname">pD3D10Texture2D</td><td>- destination D3D10 texture </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga92b6817beb98d9cdd71280420e3da8e3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga92b6817beb98d9cdd71280420e3da8e3">&#9670;&nbsp;</a></span>convertToD3D11Texture2D()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::directx::convertToD3D11Texture2D </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ID3D11Texture2D *&#160;</td>
          <td class="paramname"><em>pD3D11Texture2D</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="../../df/d8b/directx_8hpp.html">opencv2/core/directx.hpp</a>&gt;</code></p>

<p>Converts InputArray to ID3D11Texture2D. If destination texture format is DXGI_FORMAT_NV12 then input <a class="el" href="../../d7/d45/classcv_1_1UMat.html">UMat</a> expected to be in BGR format and data will be downsampled and color-converted to NV12. </p>
<dl class="section note"><dt>Note</dt><dd>Note: Destination texture must be allocated by application. Function does memory copy from src to pD3D11Texture2D </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>- source InputArray </td></tr>
    <tr><td class="paramname">pD3D11Texture2D</td><td>- destination D3D11 texture </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga45c2557af043bc17b9491503fc669a2d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga45c2557af043bc17b9491503fc669a2d">&#9670;&nbsp;</a></span>convertToDirect3DSurface9()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::directx::convertToDirect3DSurface9 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IDirect3DSurface9 *&#160;</td>
          <td class="paramname"><em>pDirect3DSurface9</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>surfaceSharedHandle</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="../../df/d8b/directx_8hpp.html">opencv2/core/directx.hpp</a>&gt;</code></p>

<p>Converts InputArray to IDirect3DSurface9. </p>
<dl class="section note"><dt>Note</dt><dd>Note: function does memory copy from src to pDirect3DSurface9 </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>- source InputArray </td></tr>
    <tr><td class="paramname">pDirect3DSurface9</td><td>- destination D3D10 texture </td></tr>
    <tr><td class="paramname">surfaceSharedHandle</td><td>- shared handle </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga17031976572a0096cd4e2519fbe30c74"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga17031976572a0096cd4e2519fbe30c74">&#9670;&nbsp;</a></span>getTypeFromD3DFORMAT()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int cv::directx::getTypeFromD3DFORMAT </td>
          <td>(</td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>iD3DFORMAT</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="../../df/d8b/directx_8hpp.html">opencv2/core/directx.hpp</a>&gt;</code></p>

<p>Get OpenCV type from DirectX type. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">iD3DFORMAT</td><td>- enum D3DTYPE for D3D9 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>OpenCV type or -1 if there is no equivalent </dd></dl>

</div>
</div>
<a id="gad5909ae5d47945e931b093bd2b6e12e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad5909ae5d47945e931b093bd2b6e12e9">&#9670;&nbsp;</a></span>getTypeFromDXGI_FORMAT()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int cv::directx::getTypeFromDXGI_FORMAT </td>
          <td>(</td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>iDXGI_FORMAT</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="../../df/d8b/directx_8hpp.html">opencv2/core/directx.hpp</a>&gt;</code></p>

<p>Get OpenCV type from DirectX type. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">iDXGI_FORMAT</td><td>- enum DXGI_FORMAT for D3D10/D3D11 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>OpenCV type or -1 if there is no equivalent </dd></dl>

</div>
</div>
<a id="ga7ec329adfc06ad752009722f6942f98a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7ec329adfc06ad752009722f6942f98a">&#9670;&nbsp;</a></span>initializeContextFromD3D10Device()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a>&amp; cv::directx::ocl::initializeContextFromD3D10Device </td>
          <td>(</td>
          <td class="paramtype">ID3D10Device *&#160;</td>
          <td class="paramname"><em>pD3D10Device</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="../../df/d8b/directx_8hpp.html">opencv2/core/directx.hpp</a>&gt;</code></p>

<p>Creates OpenCL context from D3D10 device. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pD3D10Device</td><td>- pointer to D3D10 device </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns reference to OpenCL Context </dd></dl>

</div>
</div>
<a id="gac1d923df82d681aca666ad85835945d1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac1d923df82d681aca666ad85835945d1">&#9670;&nbsp;</a></span>initializeContextFromD3D11Device()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a>&amp; cv::directx::ocl::initializeContextFromD3D11Device </td>
          <td>(</td>
          <td class="paramtype">ID3D11Device *&#160;</td>
          <td class="paramname"><em>pD3D11Device</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="../../df/d8b/directx_8hpp.html">opencv2/core/directx.hpp</a>&gt;</code></p>

<p>Creates OpenCL context from D3D11 device. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pD3D11Device</td><td>- pointer to D3D11 device </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns reference to OpenCL Context </dd></dl>

</div>
</div>
<a id="ga763e240e3ae405e0140198941bd0dcee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga763e240e3ae405e0140198941bd0dcee">&#9670;&nbsp;</a></span>initializeContextFromDirect3DDevice9()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a>&amp; cv::directx::ocl::initializeContextFromDirect3DDevice9 </td>
          <td>(</td>
          <td class="paramtype">IDirect3DDevice9 *&#160;</td>
          <td class="paramname"><em>pDirect3DDevice9</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="../../df/d8b/directx_8hpp.html">opencv2/core/directx.hpp</a>&gt;</code></p>

<p>Creates OpenCL context from Direct3DDevice9 device. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pDirect3DDevice9</td><td>- pointer to Direct3Device9 device </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns reference to OpenCL Context </dd></dl>

</div>
</div>
<a id="gaf945f3411355162d7de85f842c752add"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf945f3411355162d7de85f842c752add">&#9670;&nbsp;</a></span>initializeContextFromDirect3DDevice9Ex()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a>&amp; cv::directx::ocl::initializeContextFromDirect3DDevice9Ex </td>
          <td>(</td>
          <td class="paramtype">IDirect3DDevice9Ex *&#160;</td>
          <td class="paramname"><em>pDirect3DDevice9Ex</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="../../df/d8b/directx_8hpp.html">opencv2/core/directx.hpp</a>&gt;</code></p>

<p>Creates OpenCL context from Direct3DDevice9Ex device. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pDirect3DDevice9Ex</td><td>- pointer to Direct3DDevice9Ex device </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns reference to OpenCL Context </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:40 for OpenCV by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
